import {
    request,
    pretty
} from '@/utils/request'
export function postAddBattleReport(data) {
    console.log(data);
    return pretty(request({
        url: '/battle_report/add_battle_report',
        method: "post",
        data,
        headers: {
            'Content-Type': 'multipart/form-data' //含有附件的表单提交的Content-Type
            // 'Content-Type': 'application/x-www-form-urlencoded'//普通表单提交的Content-Type
        }
    }))
}
export function getReadBattleReport(id = '270edce8-38c4-11ed-91d0-fd4b37971774') {
    return pretty(request.get(`/battle_report/read_battle_report/${id}`))
}
